﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data;
using System.Data.Linq;
using Blog.DAL;
namespace Blog.BAL
{
    public partial class countries:tblcountries
    {
        public string get_country_by_id(int id)
        {
            DB db = new DB();
            var a = (from d in db.tblcountries where d.con_id.Equals(id) select d).ToList();
             return a[0].name.ToString();
        }
    }
}
